"""
@Project:p8项目
@File:migrate.py
@Author:柴奇峰
@Date:17:17
"""
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager
from main import app
from model.user_model import *
from model.courses import *

manager = Manager(app)
migrate = Migrate(app,db)
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manager.run()